package com.zsrt.highschool.entity;

/**
 * 管理员类
 * @author Administrator
 *
 */

public class Admin {
	
	/**
	 * 用户名
	 */
	private String username = "admin";
	
	/**
	 * 密码
	 */
	private String password = "123456";
	
	
	
	public String getUsername() {
		return username;
	}



	public void setUsername(String username) {
		this.username = username;
	}



	public String getPassword() {
		return password;
	}



	public void setPassword(String password) {
		this.password = password;
	}



	/**
	 * 管理员登录
	 * @param userName 用户名
	 * @param password 密码
	 * @return
	 */
	public boolean login(String userName,String password){
		return this.username.equals(userName)&&this.password.equals(password);
	}

}
